<!--
 * @Author: 宋绍华
 * @Date: 2024-11-11 17:16:16
 * @LastEditors: 宋绍华
 * @LastEditTime: 2024-12-23 16:40:54
 * @FilePath: \sr_system_manager_ui\src\views\project\components\Details\BusinessReview.vue
 * @Description: 合同审核
-->
<template>
  <div class="publish-notices">
    <div class="publish-notices-content">
      <el-form label-width="auto">
        <el-form-item label="审核意见" required>
          <QuickText v-model="form.notices" style="width: 100%;" />
        </el-form-item>

        <el-form-item label="相关附件">
          <FileUpload :isShowTip="false" drag :limit="20" :file-size="100" @update:modelValue="update" />
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import QuickText from '@/components/QuickText/index.vue'

const open = ref(false);
const typeName = ref('');
const form = ref({
  notices: '',
  fileIds: []
})

const save = () => {
  console.log('保存')
}

const publish = () => {
  console.log('发布')
}

// 设置日期
const disabledDate = (time) => {
  const date = new Date(time)
  return date.getTime() < Date.now() - 8.64e7
}

// 关闭弹窗
const closeModal = () => {
  typeName.value = '';
  open.value = false;
}

const submitForm = () => {
  console.log('提交')
}

const update = (val) => {
  console.log(val, 'val');
  form.value.fileIds = val
}

defineExpose({
  form: form.value
})

</script>

<style lang="scss" scoped>
.publish-notices {
  --at-apply: bg-white h-full;

  .title {
    --at-apply: text-20px font-bold border-b border-#E5E6EB py-16px pl-20px border-b-solid;
  }

  &-content {
    --at-apply: p-30px;
  }
}
</style>